<div id="maincontent">

<%= render :partial => "shared_common_files/data_area_help_bar" %>

<h2>Preview Themes</h2>
<h5></h5>	
  
 <div class="list">
 <%= start_form_tag({:action => ''},{:class => 'appform'}) %>
<fieldset>
  <h3>Theme List and Preview</h3>
        <label><!-- b>Theme List and Preview</b --></label>
            <table>

            <%
                count=0
                Dir.foreach("#{RAILS_ROOT}/themes"){|theme_dir| 
                    if theme_dir[0,1]!="." # raw way of saying no hidden directories, other way to 
                                           # to do is in Dir...specify regex to filter
            %>
                    <tr class="<%=get_row_type(count)%>" >
                        <td>
                            <b><%=theme_dir%> </b>
                        </td>
                        <td>
                            <img src="/themes/<%=theme_dir%>/images/preview.png"  width="300"  height="150"/>
                         </td>
                        </td>
                     </tr>
                     <% count = count + 1 %>
                     <%end%>
                 <%}%> 
            </table>
 
               
               <div class="f-submit-wrap">
               <!-- %= link_if_authorized submit_tag('<< Back'), {:action => 'appconfig'}  % -->
               <!-- input type="button" value="Cancel" onclick="javascript:history.go(-1);"/ -->
            <!-- input type="image" src="/themes/odotclassic/images/btn_cancel.gif" onclick="javascript:history.go(-1);" / -->
            <a href="javascript:history.go(-1);"><img src="/themes/odotclassic/images/btn_back.png"/></a>
                </div>
                </fieldset>
 </div>

<%=end_form_tag%>

</div>




